import request from "../../request.js";
//添加收货地址
function addAddressInfo(data){
	return request({
		url:"/lejuClient/address/addAddressInfo",
		data:data,
		method:"post"
	})
}
//删除收货地址
function delAddressInfo(addressId,data){
	return request({
		url:`/lejuClient/address/delAddressInfo/${addressId}`,
		data:data,
		method:"delete"
	})
}
//查询收货列表
function findAllAddress(data){
	return request({
		url:"/lejuClient/address/findAllAddress",
		data:data,
	})
}
//设置默认地址
function makeAddressDefaul(addressId,data){
	return request({
		url:`/lejuClient/address/makeAddressDefaul/${addressId}`,
		data:data,
		method:"post"
	})
}
//更新收货地址
function updateAddressInfo(data){
	return request({
		url:"/lejuClient/address/updateAddressInfo",
		data:data,
		method:"post"
	})
}
export{
	addAddressInfo,delAddressInfo,findAllAddress,makeAddressDefaul,updateAddressInfo
}
